.class public Lcom/waiqin365/lightapp/im/activity/AlertDialog;
.super Lcom/waiqin365/lightapp/im/activity/IMBaseActivity;


# static fields
.field public static a:Z


# instance fields
.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/Button;

.field private e:Landroid/widget/Button;

.field private f:I

.field private g:Landroid/widget/ImageView;

.field private h:Landroid/widget/EditText;

.field private i:Z

.field private j:Landroid/widget/RelativeLayout;

.field private k:Landroid/widget/LinearLayout;

.field private l:Z

.field private m:Z

.field private n:Z

.field private o:Landroid/view/animation/Animation;

.field private p:Landroid/view/View;

.field private q:Landroid/view/View;

.field private r:Z


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/IMBaseActivity;-><init>()V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->l:Z

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->r:Z

    return-void
.end method


# virtual methods
.method public cancel(Landroid/view/View;)V
    .locals 0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->finish()V

    return-void
.end method

.method public copy(Landroid/view/View;)V
    .locals 4

    const/4 v0, 0x1

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v2, "position"

    iget v3, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->f:I

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->setResult(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->finish()V

    return-void
.end method

.method public delete(Landroid/view/View;)V
    .locals 4

    const/4 v0, 0x2

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v2, "position"

    iget v3, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->f:I

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->setResult(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->finish()V

    return-void
.end method

.method public download(Landroid/view/View;)V
    .locals 4

    const/4 v0, 0x5

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v2, "position"

    iget v3, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->f:I

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->setResult(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->finish()V

    return-void
.end method

.method public forward(Landroid/view/View;)V
    .locals 4

    const/4 v2, 0x0

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v0

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v1

    invoke-virtual {v1, p0}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/offlinedata/m;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_1

    const-string/jumbo v1, "1"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string/jumbo v1, "3"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f080307

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v2}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :goto_0
    return-void

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f08030a

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v2}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :cond_1
    const/4 v0, 0x3

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v2, "position"

    iget v3, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->f:I

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->setResult(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->finish()V

    goto :goto_0
.end method

.method public ok(Landroid/view/View;)V
    .locals 5

    const/4 v4, -0x1

    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->h:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getVisibility()I

    move-result v1

    if-nez v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->h:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_1

    const-string/jumbo v2, "position"

    iget v3, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->f:I

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string/jumbo v2, "edittext"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p0, v4, v0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->setResult(ILandroid/content/Intent;)V

    iget v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->f:I

    if-eq v0, v4, :cond_0

    iget v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->f:I

    sput v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->d:I

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->finish()V

    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->h:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->o:Landroid/view/animation/Animation;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->startAnimation(Landroid/view/animation/Animation;)V

    goto :goto_0

    :cond_2
    iget-boolean v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->r:Z

    if-eqz v1, :cond_3

    new-instance v0, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/high16 v1, 0x4000000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->finish()V

    goto :goto_0

    :cond_3
    const-string/jumbo v1, "position"

    iget v2, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->f:I

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    invoke-virtual {p0, v4, v0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->setResult(ILandroid/content/Intent;)V

    iget v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->f:I

    if-eq v0, v4, :cond_4

    iget v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->f:I

    sput v0, Lcom/waiqin365/lightapp/im/activity/ChatActivity;->d:I

    :cond_4
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->finish()V

    goto :goto_0
.end method

.method public onBackPressed()V
    .locals 2

    const/4 v1, 0x0

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->finish(Z)V

    const v0, 0x7f040028

    invoke-virtual {p0, v1, v0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->overridePendingTransition(II)V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 11

    const/4 v10, -0x1

    const/4 v9, 0x0

    const/4 v8, 0x0

    const/16 v7, 0x8

    const/high16 v6, 0x40000000    # 2.0f

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/im/activity/IMBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f030148

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->setContentView(I)V

    const/4 v0, 0x1

    sput-boolean v0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->a:Z

    const v0, 0x7f04001d

    invoke-static {p0, v0}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->o:Landroid/view/animation/Animation;

    const v0, 0x7f0c01ef

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->b:Landroid/widget/TextView;

    const v0, 0x7f0c078a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->c:Landroid/widget/TextView;

    const v0, 0x7f0c04f3

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->d:Landroid/widget/Button;

    const v0, 0x7f0c078f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->e:Landroid/widget/Button;

    const v0, 0x7f0c078c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->g:Landroid/widget/ImageView;

    const v0, 0x7f0c0065

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->p:Landroid/view/View;

    const v0, 0x7f0c078d

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->q:Landroid/view/View;

    const v0, 0x7f0c078b

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->h:Landroid/widget/EditText;

    const v0, 0x7f0c0789

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->j:Landroid/widget/RelativeLayout;

    const v0, 0x7f0c078e

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->k:Landroid/widget/LinearLayout;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->getLayoutInflater()Landroid/view/LayoutInflater;

    move-result-object v2

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "msg"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v3, "title"

    invoke-virtual {v0, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v4, "position"

    invoke-virtual {v0, v4, v10}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->f:I

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v4, "titleIsCancel"

    invoke-virtual {v0, v4, v8}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->n:Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v4, "cancel"

    invoke-virtual {v0, v4, v8}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->m:Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v4, "isCancelable"

    const/4 v5, 0x1

    invoke-virtual {v0, v4, v5}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->l:Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v4, "exitLogin"

    invoke-virtual {v0, v4, v8}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->r:Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v4, "editTextShow"

    invoke-virtual {v0, v4, v8}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->i:Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v4, "forwardImage"

    invoke-virtual {v0, v4}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->getIntent()Landroid/content/Intent;

    move-result-object v4

    const-string/jumbo v5, "type"

    invoke-virtual {v4, v5, v10}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v4

    if-eqz v1, :cond_0

    iget-object v5, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->c:Landroid/widget/TextView;

    invoke-virtual {v5, v8}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v5, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->c:Landroid/widget/TextView;

    invoke-virtual {v5, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    if-eqz v3, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->b:Landroid/widget/TextView;

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_1
    iget-boolean v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->n:Z

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->b:Landroid/widget/TextView;

    invoke-virtual {v1, v7}, Landroid/widget/TextView;->setVisibility(I)V

    :cond_2
    iget-boolean v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->m:Z

    if-eqz v1, :cond_6

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->d:Landroid/widget/Button;

    invoke-virtual {v1, v8}, Landroid/widget/Button;->setVisibility(I)V

    :goto_0
    if-eqz v0, :cond_3

    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_f

    const-string/jumbo v1, "/"

    invoke-virtual {v0, v1}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v3

    invoke-virtual {v0, v1, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Lcom/hyphenate/util/PathUtil;->getInstance()Lcom/hyphenate/util/PathUtil;

    move-result-object v3

    invoke-virtual {v3}, Lcom/hyphenate/util/PathUtil;->getImagePath()Ljava/io/File;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v3, "/"

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v3, "th"

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    move-object v1, v0

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->g:Landroid/widget/ImageView;

    invoke-virtual {v0, v8}, Landroid/widget/ImageView;->setVisibility(I)V

    const v0, 0x7f0c078a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, v7}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-static {}, Lcom/waiqin365/lightapp/im/utils/i;->a()Lcom/waiqin365/lightapp/im/utils/i;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/utils/i;->a(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v0

    if-eqz v0, :cond_7

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->g:Landroid/widget/ImageView;

    invoke-static {}, Lcom/waiqin365/lightapp/im/utils/i;->a()Lcom/waiqin365/lightapp/im/utils/i;

    move-result-object v3

    invoke-virtual {v3, v1}, Lcom/waiqin365/lightapp/im/utils/i;->a(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    :cond_3
    :goto_2
    iget-boolean v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->i:Z

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->h:Landroid/widget/EditText;

    invoke-virtual {v0, v8}, Landroid/widget/EditText;->setVisibility(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "editTextContent"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_4

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "editTextContent"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->h:Landroid/widget/EditText;

    invoke-virtual {v1, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->h:Landroid/widget/EditText;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    invoke-virtual {v1, v0}, Landroid/widget/EditText;->setSelection(I)V

    :cond_4
    if-ne v4, v10, :cond_8

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v8}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :cond_5
    :goto_3
    return-void

    :cond_6
    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->p:Landroid/view/View;

    invoke-virtual {v1, v7}, Landroid/view/View;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->e:Landroid/widget/Button;

    const v3, 0x7f020013

    invoke-virtual {v1, v3}, Landroid/widget/Button;->setBackgroundResource(I)V

    goto/16 :goto_0

    :cond_7
    const/16 v0, 0x96

    const/16 v3, 0x96

    invoke-static {v1, v0, v3}, Lcom/hyphenate/util/ImageUtils;->decodeScaleImage(Ljava/lang/String;II)Landroid/graphics/Bitmap;

    move-result-object v0

    iget-object v3, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->g:Landroid/widget/ImageView;

    invoke-virtual {v3, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    invoke-static {}, Lcom/waiqin365/lightapp/im/utils/i;->a()Lcom/waiqin365/lightapp/im/utils/i;

    move-result-object v3

    invoke-virtual {v3, v1, v0}, Lcom/waiqin365/lightapp/im/utils/i;->a(Ljava/lang/String;Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    goto :goto_2

    :cond_8
    sget-object v0, Lcom/hyphenate/chat/EMMessage$Type;->TXT:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage$Type;->ordinal()I

    move-result v0

    if-ne v4, v0, :cond_9

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->q:Landroid/view/View;

    invoke-virtual {v0, v7}, Landroid/view/View;->setVisibility(I)V

    const v0, 0x7f030156

    invoke-virtual {v2, v0, v9}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->j:Landroid/widget/RelativeLayout;

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v2

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v3

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v4

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v5

    invoke-virtual {v1, v2, v3, v4, v5}, Landroid/widget/RelativeLayout;->setPadding(IIII)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->j:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    goto :goto_3

    :cond_9
    sget-object v0, Lcom/hyphenate/chat/EMMessage$Type;->LOCATION:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage$Type;->ordinal()I

    move-result v0

    if-ne v4, v0, :cond_a

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->q:Landroid/view/View;

    invoke-virtual {v0, v7}, Landroid/view/View;->setVisibility(I)V

    const v0, 0x7f030155

    invoke-virtual {v2, v0, v9}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->j:Landroid/widget/RelativeLayout;

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v2

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v3

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v4

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v5

    invoke-virtual {v1, v2, v3, v4, v5}, Landroid/widget/RelativeLayout;->setPadding(IIII)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->j:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    goto/16 :goto_3

    :cond_a
    sget-object v0, Lcom/hyphenate/chat/EMMessage$Type;->IMAGE:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage$Type;->ordinal()I

    move-result v0

    if-ne v4, v0, :cond_c

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->q:Landroid/view/View;

    invoke-virtual {v0, v7}, Landroid/view/View;->setVisibility(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "issavelocal"

    invoke-virtual {v0, v1, v8}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_b

    const v0, 0x7f030154

    invoke-virtual {v2, v0, v9}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    :goto_4
    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->j:Landroid/widget/RelativeLayout;

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v2

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v3

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v4

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v5

    invoke-virtual {v1, v2, v3, v4, v5}, Landroid/widget/RelativeLayout;->setPadding(IIII)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->j:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    goto/16 :goto_3

    :cond_b
    const v0, 0x7f030153

    invoke-virtual {v2, v0, v9}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    goto :goto_4

    :cond_c
    sget-object v0, Lcom/hyphenate/chat/EMMessage$Type;->VOICE:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage$Type;->ordinal()I

    move-result v0

    if-ne v4, v0, :cond_d

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->q:Landroid/view/View;

    invoke-virtual {v0, v7}, Landroid/view/View;->setVisibility(I)V

    const v0, 0x7f030158

    invoke-virtual {v2, v0, v9}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->j:Landroid/widget/RelativeLayout;

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v2

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v3

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v4

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v5

    invoke-virtual {v1, v2, v3, v4, v5}, Landroid/widget/RelativeLayout;->setPadding(IIII)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->j:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    goto/16 :goto_3

    :cond_d
    sget-object v0, Lcom/hyphenate/chat/EMMessage$Type;->VIDEO:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage$Type;->ordinal()I

    move-result v0

    if-ne v4, v0, :cond_e

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->q:Landroid/view/View;

    invoke-virtual {v0, v7}, Landroid/view/View;->setVisibility(I)V

    const v0, 0x7f030157

    invoke-virtual {v2, v0, v9}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->j:Landroid/widget/RelativeLayout;

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v2

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v3

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v4

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v5

    invoke-virtual {v1, v2, v3, v4, v5}, Landroid/widget/RelativeLayout;->setPadding(IIII)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->j:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    goto/16 :goto_3

    :cond_e
    sget-object v0, Lcom/hyphenate/chat/EMMessage$Type;->FILE:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage$Type;->ordinal()I

    move-result v0

    if-ne v4, v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->q:Landroid/view/View;

    invoke-virtual {v0, v7}, Landroid/view/View;->setVisibility(I)V

    const v0, 0x7f030152

    invoke-virtual {v2, v0, v9}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->j:Landroid/widget/RelativeLayout;

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v2

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v3

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v4

    invoke-static {p0, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v5

    invoke-virtual {v1, v2, v3, v4, v5}, Landroid/widget/RelativeLayout;->setPadding(IIII)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->j:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    goto/16 :goto_3

    :cond_f
    move-object v1, v0

    goto/16 :goto_1
.end method

.method protected onDestroy()V
    .locals 1

    invoke-super {p0}, Lcom/waiqin365/lightapp/im/activity/IMBaseActivity;->onDestroy()V

    const/4 v0, 0x0

    sput-boolean v0, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->a:Z

    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 2

    const/4 v1, 0x0

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->finish(Z)V

    const v0, 0x7f040028

    invoke-virtual {p0, v1, v0}, Lcom/waiqin365/lightapp/im/activity/AlertDialog;->overridePendingTransition(II)V

    const/4 v0, 0x1

    return v0
.end method
